package com.example.program.model

import android.util.TypedValue
import android.widget.TextView
import androidx.core.graphics.toColorInt
import androidx.databinding.BindingAdapter

@BindingAdapter("initTextInfo")
fun initTextInfo(view: TextView, viewModel: sharedViewModel){
    view.setTextColor("#693849".toColorInt())
    view.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20f)
}

@BindingAdapter("initTextInfo")
fun TextView.initTextInfo(viewModel: sharedViewModel){
    setTextColor("#693849".toColorInt())
    setTextSize(TypedValue.COMPLEX_UNIT_SP, 20f)
}